<!DOCTYPE html>
<html lang="en">
<head>
    <link th:replace="include/header.html">
    <title>我的动态</title>
    <style>
        .select{background: lightgreen;}
        .selectRed{background: red;}
    </style>
</head>
<body>
    <a href="/">home</a>
    <a href="/stock">股票</a>
    <!--<a href="/fund">fund</a>-->
    <a href="/left">预估</a>
    <style>
        #table1 tr:hover {
            background-color: yellow;
        }
    </style>
    <table width="90%" class="table" id="table1">
        <tr>
            <th>日期</th>
            <th>编码</th>
            <th>名称</th>
            <th>从</th>
            <th>到</th>
            <th>相关基金</th>
        </tr>
        <tr th:each="s : ${events}">
            <td th:text="${#dates.format(s.date, 'MM-dd')}"></td>
            <td>
                <a target="_blank" th:href="${'https://quote.eastmoney.com/' + s.jys + s.code + '.html'}" th:text="${s.code}"></a>
            </td>
            <td th:text="${s.name}"></td>
            <td th:text="${s.fromPercent}"></td>
            <td th:text="${s.toPercent}"></td>
            <td>
            <a th:href="'/fundByStock?stockId=' + ${s.stockId}" target="_blank">查看</a>
            </td>
        </tr>
    </table>

</body>
</html>